#include <stdio.h>
int main (){
    float C,F;
    scanf("%f",&F);
    C = (float)5/9*(F-32);
    printf("%.2f\n",C);
    return 0;
}
